<?php


namespace app\miniapp\controller;


use app\common\controller\Api;
use app\miniapp\model\SpecModel;

class Spec extends Base
{
    protected $noNeedLogin = '*';
    //规格
    public function list()
    {
        $id = input('id/d');
        if (empty($id)) {
            $this->error('商品id不能为空');
        }
        $list = SpecModel::where('gid',$id)->select();
            $this->success('查询成功',[
                'list' => $list
            ]);
    }

}